home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / GNU / GNUPLOTsrc.lha / binary.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-22  |  1.5 KB  |  25 lines

  1. /*
  2.  * $Id: binary.h,v 1.2 1994/09/13 16:11:21 alex Exp $
  3.  *
  4.  */
  5.  
  6. /* Copied from command.c -- this should be put in a shared macro file */
  7. #ifndef inrange
  8. #define inrange(z,min,max) ((min<max) ? ((z>=min)&&(z<=max)) : ((z>=max)&&(z<=min)) )
  9. #endif
  10.  
  11. /* Routines for interfacing with command.c */
  12. float GPFAR *vector __P(( int nl, int nh));
  13. float GPFAR *extend_vector __P((float GPFAR *vec, int old_nl, int old_nh, int new_nh));
  14. float GPFAR *retract_vector __P((float GPFAR *v, int old_nl, int old_nh, int new_nh));
  15. float GPFAR * GPFAR *matrix __P(( int nrl, int nrh, int ncl, int nch));
  16. float GPFAR * GPFAR *extend_matrix __P(( float GPFAR * GPFAR *a, int nrl, int nrh, int ncl, int nch, int srh, int sch));
  17. float GPFAR * GPFAR *retract_matrix __P(( float GPFAR * GPFAR *a, int nrl, int nrh, int ncl, int nch, int srh, int sch));
  18. void free_matrix __P((float GPFAR * GPFAR *m, unsigned nrl, unsigned nrh, unsigned ncl, unsigned nch));
  19. void free_vector __P((float GPFAR *vec, int nl, int nh));
  20. int is_binary_file __P(( FILE *fp));
  21. int fread_matrix __P((FILE *fin, float GPFAR * GPFAR * GPFAR *ret_matrix, int *nr, int *nc, float GPFAR * GPFAR *row_title, float GPFAR * GPFAR *column_title));
  22. int fwrite_matrix __P(( FILE *fout, float GPFAR * GPFAR *m, int nrl, int nrh, int ncl, int nch, float GPFAR *row_title, float GPFAR *column_title));
  23. float GPFAR * GPFAR *convert_matrix __P((float GPFAR *a, int nrl, int nrh, int ncl, int nch));
  24. void free_convert_matrix __P((float GPFAR* GPFAR *b, int nrl, int nrh, int ncl, int nch));
  25.